export function fetchItem (id) {
  return new Promise((resolve, reject) => {

    if(parseInt(id) === 1){
      resolve({id:1, title:'item 1'});
    }
    else{
      resolve({id:2, title:'item other'});
    }
  })
}
